package com.cysyz.commonservice.mycommonservice;

import com.cysyz.commonservice.mycommonservice.exception.InputValueIsNullOrEmptyException;
import com.cysyz.commonservice.mycommonservice.exception.MD5NotMatchException;
import com.cysyz.commonservice.mycommonservice.exception.UrlExpireException;
import com.cysyz.commonservice.mycommonservice.exception.ValueNotMatchException;
import com.cysyz.commonservice.mycommonservice.impl.MailContentGenerator;
import com.cysyz.commonservice.mycommonservice.support.ResetPasswordByEmailAble;

public interface ResetPasswordByEmailService {

	public abstract void resetPasswordByEmail(ResetPasswordByEmailAble input,
			String newPassword) throws InputValueIsNullOrEmptyException,
			MD5NotMatchException, UrlExpireException, ValueNotMatchException, InvalidIdException;

	void generateResetPsUrl(ResetPasswordByEmailAble input, String urlPrefix,
			MailContentGenerator mailContentGenerator)
			throws InputValueIsNullOrEmptyException, ValueNotMatchException, InvalidIdException;

}